package com.jd.sunny.java;

/**
 * @Description:test java structure
 * @author:sunlin
 * @since:2012-11-28 18:45
 * @version:1.0.0
 */
public class TestStructure {

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

/**
 * I find we can put class into a  interface file and we can put interface into a class file,can use abstract class in a class file
 */
abstract class B extends java.lang.Object {

    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

interface C {
    public boolean equals(Object obj);

    public void get();
}

class D{

}

/**
 * abstract class can extends normal class
 */
abstract class F extends Person{

    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

class G implements C{

    public boolean equals(Object obj){
        return true;
    }

    public void get(){

    }


}